import log from '@dfeidao/atom-nodejs/logger/log';
import { IncomingHttpHeaders } from 'http';
import query from '@dfeidao/atom-nodejs/db/query';
import { systemid,productid} from '../../atom/config';
interface Message {
	// cookie: {
	// 	uk: string;
	// 	[key: string]: string
	// };
	// urls: {
	// 	base: string;
	// 	origin: string;
	// 	url: string;
	// };
	// query: {};
	// params: {};
	// headers: {};
	// captcha: string;
}
export default async function atom(message: Message, action_id: string, session_id: string, headers: IncomingHttpHeaders){
	const { prepare, exec } = query(action_id, session_id, systemid);
	prepare('company_project', ['project_no','project_name'], {productid}, 200, 1, [], []);//项目名称
	prepare('work_order', ['source_type'], {productid}, 200, 1, [], []);//工单来源
	const [d1,d2] = await exec();
	return{d1,d2};
}
